#!/usr/bin/python3
# -*- coding: utf-8 -*-
import os
openkylin = [
    {
        "name": "linux",
        "url": "git@gitee.com:openkylin/linux.git"
    },
    {
        "name": "dwarves",
        "url": "git@gitee.com:openkylin/dwarves.git"
    },
    {
        "name": "busybox",
        "url": "git@gitee.com:openkylin/busybox.git"
    },
]

def clone():
    for soft in openkylin:
        command = "git clone --mirror {url} openkylin/{name}.git".format(name=soft["name"], url=soft["url"])
        os.system(command)

if __name__ == '__main__':
    clone()